package com.zl.rbac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zl.rbac.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 角色Mapper类
 * @InterfaceName: RoleMapper
 * @author: suke
 * @since: 2021/1/12 9:44
 */
@Mapper
@Repository
public interface RoleMapper  extends BaseMapper<Role> {

    /**
     * 
     * @Title: 根据id查询角色以及该角色所有的权限
     * @param id 角色id
     * @return com.zl.rbac.entity.Role
     * @author: suke
     * @since: 2021/1/12 11:07
     */
    public  Role  queryRoleAndPermissionsById(Integer id) throws Exception;
}
